package com.mc.service.log;

import com.mc.mapper.SysLogMapper;
import com.mc.mapper.model.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/***
 * @ClassName LogService
 * @Description todo
 * @Author CC
 * @Date: 2019/11/910:08
 * @Version 1.0
 */
@Service
public class LogService implements ILogService {
    @Autowired
    SysLogMapper logMapper;

    @Override
    public void saveLog(SysLog log) {
        logMapper.insert(log);

    }

    @Override
    public void update(SysLog log) {
        logMapper.updateByPrimaryKeySelective(log);
    }
}
